(function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n(require("vue")):typeof define=="function"&&define.amd?define(["vue"],n):(e=typeof globalThis<"u"?globalThis:e||self,e.index=n(e.Vue))})(this,(function(e){"use strict";const n={class:""},a=e.defineComponent({__name:"index",props:{percentage:{type:Number,default:0},isAnimation:{type:Boolean,default:!1},animationTime:{type:Number,default:1e3}},setup(i){const t=i,o=e.ref(0);return e.onMounted(()=>{if(t.isAnimation){const r=Math.ceil(t.animationTime/t.percentage);o.value=0;const s=setInterval(()=>{o.value+=1,o.value>=t.percentage&&(o.value=t.percentage,clearInterval(s))},r)}}),(r,s)=>{const c=e.resolveComponent("el-progress");return e.openBlock(),e.createElementBlock("div",n,[e.createVNode(c,e.mergeProps(r.$attrs,{percentage:o.value}),null,16,["percentage"])])}}});return{install(i){i.component("ti-progress",a)}}}));
